package org.jeecg.eqp.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;


@Data
@TableName("mes_pallet_history")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_pallet_history对象", description = "托盘历史信息")
public class MesPalletHistory implements Serializable {

    private static final long serialVersionUID = -6457324806620308513L;
    /**
     * 主键ID
     */
    @TableId
    private Integer recId;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;

    /**
     * 托盘码
     */
    @ApiModelProperty(value = "托盘码")
    @Excel(name = "托盘码", width = 15)
    private String palletno;

    /**
     * 产线
     */
    @Excel(name = "产线", width = 15, dictTable = "mes_line_cfg", dicText = "NAME", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "NAME", dicCode = "LINE")
    @ApiModelProperty(value = "产线")
    private String line;

    /**
     * 工单ID
     */
    @Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String woid;

    /**
     * 工位
     */
    @Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    private String op;

    /**
     * 产品
     */
    @Excel(name = "产品(PARTNO OR PARTNO_GROUP)", width = 15)
    @ApiModelProperty(value = "产品(PARTNO OR PARTNO_GROUP)")
    private String partno;

    /**
     * 父容器码
     */
    @Excel(name = "父容器码", width = 15)
    @ApiModelProperty(value = "父容器码PARCTRNO")
    private String parctrno;

    /**
     * 序列号
     */
    @Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    private String unitsn;

    /**
     * 状态 1为绑定 2为解绑
     */
    @ApiModelProperty(value = "状态")
    private String status;

}